import Layout from '@/layout/index.vue'
// 对外暴露配置路由(常量路由): 全部用户都可以访问到的路由
export const constantRoute = [
  {
    // 登录路由
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    name: 'Login',
    meta: {
      title: '登录', // 菜单标题
      hidden: true // 代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
    }
  },
  {
    path: '/',
    component: Layout
  },
  {
    path: '/404',
    component: () => import('@/views/404/index.vue'),
    name: '404',
    meta: {
      title: '404',
      hidden: true
    }
  },
  {
    path: '/:pathMatch(.*)*',
    component: () => import('@/views/404/index.vue'),
    meta: {
      title: '任意路由',
      hidden: true
    }
  }
]

// 异步路由
export const asnycRoute = []
